package com.bjdd.jdy.ui.pay;

import com.bjdd.jdy.base.BaseResult;
import com.bjdd.jdy.entity.PayBean;
import com.bjdd.jdy.util.Api;
import com.bjdd.jdy.util.RxSchedulers;

import rx.Observable;

/**
 * Created by Administrator on 2017/5/9.
 */

public class PayModel implements PayContract.Model {
    @Override
    public Observable<BaseResult<String>> cod(String token, String orderNo) {
        return Api.getInstance().service
                .cod(token,orderNo)
                .compose(RxSchedulers.io_main());
    }

    @Override
    public Observable<BaseResult<PayBean>> helpPay(String token, String orderNo) {
        return Api.getInstance().service
                .helpPay(token,orderNo)
                .compose(RxSchedulers.io_main());
    }
}
